Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for X-Dgraph-AuthToken header #248

Merged
merged 1 commit into from Mar 4, 2021
Merged

Adding support for X-Dgraph-AuthToken header #248

merged 1 commit into from Mar 4, 2021

Conversation

elliotmassen
Copy link
Contributor

@elliotmassen elliotmassen commented Feb 23, 2021

This PR addresses the issue raised here (and originally in #224) by adding a new "Auth Token" setting to the "Extra Settings" tab in the server connection modal. The inputted value will then be sent as the X-Dgraph-AuthToken HTTP header on requests to the server.

I'm not familar with the Ratel codebase, so it's possible that I've missed something! I've followed the same pattern used for the Slash API Key for consistency.

When I ran ./scripts/build.prod.sh it made updates to yarn.lock and package-lock.json, however I presumed these changes should not be commited as this PR does not introduce any new depedencies.


This change is Reviewable

Ratel Preview: Dgraph Preview

@CLAassistant
Copy link

CLAassistant commented Feb 23, 2021

CLA assistant check
All committers have signed the CLA.

@MichelDiz
Copy link
Contributor

@elliotmassen can you sign the CLA?

@elliotmassen
Copy link
Contributor Author

@MichelDiz Done :)

Copy link
Contributor

@MichelDiz MichelDiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. I have tested locally. And the code is straightforward.

Copy link
Contributor

@gja gja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've approved. @MichelDiz please take this forward

@MichelDiz MichelDiz merged commit 1d745ce into dgraph-io:master Mar 4, 2021
@MichelDiz
Copy link
Contributor

@elliotmassen thanks for the PR. We'll see it live as soon we have a Ratel release.

Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants